# import pytest
#
# pytest.main(['-sv',r'C:\Users\Administrator\PycharmProjects\seafile_129\testcase1\test_4查询资料库.py','--html=my_testcases.html'])


import os

import pytest

# 项目程序主入口

pytest.main(['-sv', r'C:\Users\Administrator\PycharmProjects\seafile_129\testcase3\test_001.py', '--clean-alluredir', '--alluredir', './allure_result'])
# 清理旧的测试报告，将allure的测试结果分析生成HTML报告
os.system('allure generate ./allure_result -o ./report --clean')